Partition function of particle in three dimension